<!DOCTYPE html>
<html>
<head>
<title>安全教育管理</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.company" @keyup.enter="query" placeholder="公司">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.dept" @keyup.enter="query" placeholder="部门">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.post" @keyup.enter="query" placeholder="岗位">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="员工姓名">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			#if($shiro.hasPermission("safetyeducationmanagement:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("safetyeducationmanagement:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("safetyeducationmanagement:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
			#if($shiro.hasPermission("safetyeducationmanagement:firApprove"))
			<a class="btn btn-primary" @click="firApprove"><i class="fa fa-pencil-square-o"></i>&nbsp;一级结果</a>
			#end
			#if($shiro.hasPermission("safetyeducationmanagement:secApprove"))
			<a class="btn btn-primary" @click="secApprove"><i class="fa fa-pencil-square-o"></i>&nbsp;二级结果</a>
			#end
			#if($shiro.hasPermission("safetyeducationmanagement:thiApprove"))
			<a class="btn btn-primary" @click="thiApprove"><i class="fa fa-pencil-square-o"></i>&nbsp;三级结果</a>
			#end
			#if($shiro.hasPermission("safetyeducationmanagement:fouApprove"))
			<a class="btn btn-primary" @click="fouApprove"><i class="fa fa-pencil-square-o"></i>&nbsp;培训结果</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList&&!showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">员工姓名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="safetyEducationManagement.name" readonly="readonly"  @click="popPage" placeholder="请选择"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">身份证号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="safetyEducationManagement.idno" readonly="readonly"  placeholder="身份证号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">公司名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="safetyEducationManagement.company" readonly="readonly"  placeholder="公司名称"/>
			    </div>
			</div>
									<!--<div class="form-group">
			   	<div class="col-sm-2 control-label">公司id</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="safetyEducationManagement.companyId" readonly="readonly"  placeholder="公司id"/>
			    </div>
			</div>-->
									<div class="form-group">
			   	<div class="col-sm-2 control-label">部门</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="safetyEducationManagement.dept" readonly="readonly"  placeholder="部门"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">岗位名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="safetyEducationManagement.post" readonly="readonly" placeholder="岗位名称"/>
			    </div>
			</div>
						<!--			<div class="form-group">
			   	<div class="col-sm-2 control-label">岗位id</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="safetyEducationManagement.postId" placeholder="岗位id"/>
			    </div>
			</div>-->
									<div class="form-group">
			   	<div class="col-sm-2 control-label">项目组</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="safetyEducationManagement.projectTeam" placeholder="项目组"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">培训科目</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="safetyEducationManagement.trainingSubjects" placeholder="培训科目"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>




<div v-show="showtable" class="panel panel-default">
	<div class="panel-heading">{{title}}</div>
	<form class="form-horizontal">

		<div v-show="showtable1" class="form-group">
			<div class="col-sm-2 control-label">公司得分</div>
			<div class="col-sm-10">
				<input type="text" class="form-control" v-model="safetyEducationManagement.companyScore" placeholder="公司得分"/>
			</div>
		</div>
		<div v-show="showtable2" class="form-group">
			<div class="col-sm-2 control-label">部门得分</div>
			<div class="col-sm-10">
				<input type="text" class="form-control" v-model="safetyEducationManagement.deptScore" placeholder="部门得分"/>
			</div>
		</div>
		<div v-show="showtable3" class="form-group">
			<div class="col-sm-2 control-label">班级得分</div>
			<div class="col-sm-10">
				<input type="text" class="form-control" v-model="safetyEducationManagement.classScore" placeholder="班级得分"/>
			</div>
		</div>
		<div v-show="showtable4" class="form-group">
			<div class="col-sm-2 control-label">结果</div>
			<div class="col-sm-10">
				<input type="text" class="form-control" v-model="safetyEducationManagement.result" placeholder="结果"/>
			</div>
		</div>
		<div v-show="showtable4" class="form-group">
			<div class="col-sm-2 control-label">确认时间</div>
			<div class="col-sm-10">
				<input type="text" class="form-control" v-model="safetyEducationManagement.confirmTime" placeholder="确认时间"
					   id="confirmTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"
				/>
			</div>
		</div>

		<div class="form-group">
			<div class="col-sm-2 control-label"></div>
			<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
			&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
		</div>
	</form>
</div>
</div>
</div>


<!-- 弹出框 -->
<div id="popLayer" style="display: none;padding:10px;">
	<table id="popGrid"></table>
	<div id="popGridPager"></div>
	<!--<ul id="menuTree" class="ztree"></ul>-->
</div>

<script src="${rc.contextPath}/js/hr/safetyeducationmanagement.js?_${date.systemTime}"></script>
</body>
</html>